<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnShowingsNumberInEntityTable extends AbstractMigration
{
    public function up()
    {
        $this->table('entity')->addColumn('showings_number', 'string', ['default' => '', 'null' => false, 'limit' => 20, 'comment' => '场次'])->save();
    }

    public function down()
    {
        $this->table('entity')->removeColumn('showings_number')->save();
    }
}
